<?php
class ORMpz_ecom_customer_address {
  public function toObj($args) {
    $obj = new stdClass();
    if (isset($args->track_id)) {
      $obj->track_id =  $args->track_id;
    }
    if (isset($args->customer_track_id)) {
      $obj->customer_track_id =  $args->customer_track_id;
    }
    if (isset($args->name)) {
      $obj->name =  $args->name;
    }
    if (isset($args->tel)) {
      $obj->tel =  $args->tel;
    }
    if (isset($args->mob)) {
      $obj->mob =  $args->mob;
    }
    if (isset($args->address)) {
      $obj->address =  $args->address;
    }
    if (isset($args->suburb)) {
      $obj->suburb =  $args->suburb;
    }
    if (isset($args->city)) {
      $obj->city =  $args->city;
    }
    if (isset($args->state)) {
      $obj->state =  $args->state;
    }
    if (isset($args->country)) {
      $obj->country =  $args->country;
    }
    if (isset($args->zip)) {
      $obj->zip =  $args->zip;
    }
    if (isset($args->is_default)) {
      $obj->is_default =  $args->is_default;
    }
    if (isset($args->order)) {
      $obj->order =  $args->order;
    }
    return $obj;
  }
}
?>
